﻿@extends('layouts.home')
@section('meta')
    <title>{{Config::get('webconfig.web_title')}}-{{$data->_cate->cate_name}}</title>
    <meta name="keywords" content="{{$data->_cate->cate_keywords}}" />
    <meta name="description" content="{{$data->_cate->cate_description}}" />

@endsection
@section('resources')
    <link href="{{asset('resources/views/home/css/style.css')}}" rel="stylesheet">
@endsection
@section('right')
    <article class="blogs">
        <h1 class="t_nav"><span>“慢生活”不是懒惰，放慢速度不是拖延时间，而是让我们在生活中寻找到平衡。</span><a href="{{url('/')}}" class="n1">网站首页</a><a href="{{url('cate/'.$data->_cate->cate_id)}}" class="n2">{{$data->_cate->cate_name}}</a></h1>
        <div class="newblog left">
            @foreach($data as $d)
            <h2>{{$d->art_title}}</h2>
            <p class="dateview"><span>　发布时间：{{date('Y-m-d',$d->art_time)}}</span><span>作者：{{$d->art_editor}}</span><span>分类：[<a href="{{url('cate/'.$data->_cate->cate_id)}}">{{$data->_cate->cate_name}}</a>]</span></p>
            <figure><img src="{{asset('uploads/'.$d->art_thumb)}}"></figure>
            <ul class="nlist">
                <p>{{mb_strlen($d->art_description) > 88 ? mb_substr($d->art_description,0,86).'...' : $d->art_description}}</p>
                <a title="{{$d->art_title}}" href="{{url('art/'.$d->art_id)}}" target="_blank" class="readmore">阅读全文>></a>
            </ul>
            @endforeach
            <div class="line"></div>
            <div class="blank"></div>
            <div class="ad">
                <img src="{{asset('resources/views/home/images/ad.png')}}">
            </div>
            <div class="page">
                {{$data->links()}}
            </div>
        </div>

@parent
@endsection
@section('rnav')
<div class="rnav">
    @if($rnav->all())
    <ul>
        @foreach($rnav as $k=>$v)
        <li class="rnav{{$k+1}}"><a href="{{url('cate/'.$v->cate_id)}}" target="_blank">{{$v->cate_name}}</a></li>
        @endforeach
    </ul>
    @endif
</div>
@endsection
